import { getLocalData } from '@/utils/localStore';
let menuList = getLocalData('menuList');
export const hasMenu = function(key) {
  console.log(menuList);
  if (menuList !== null && menuList.length > 0) {
    let childZTrees = menuList[0]['childZTrees'];
    for (let a in childZTrees) {
      for (let b in childZTrees[a]['childZTrees']) {
        if (childZTrees[a]['childZTrees'][b]['authNo'] == key) {
          return true;
        }
      }
    }
  } else {
    return false;
  }
};
